<template>
<div class="event">
   <div>编号：{{requestId}}</div>
   <div>电话：{{phone}}</div>
   <div>类型：{{eventType}}</div>
   <!-- <p>{{position}}</p> -->
   <p>描述：{{describe}}</p>
   <!-- <div>{{eventStatus}}</div> -->
   <div class="btn">
      <el-button type="primary" size="medium" plain @click="examine">审核</el-button>
   </div>
</div>
</template>
<script>
import { getRequest } from "../utils/api";
import { putRequest } from "../utils/api";
import "../css/EventCard.css"
import { NODE_ENV } from "../../config/prod.env";

export default {
  data() {
    return {
        
    };
  },
  computed:{
    eventStatus(){
        // if(this.status==1){return "未审核"}
        // else return "已审核"
        return "未审核"
    }
  },
  mounted: function () {
      
  },
  methods: {
    examine(){
        // this.openDialog()
        this.deliverPosition()
        // console.log("执行");
        // console.log(this.index);
        // this.$emit("deleteEvent", this.index);
    },
    openDialog(){
      this.$emit("changeVisible", true);
    },
    deliverPosition(){
      this.$emit("changePosition", this.index);
    }
  },
  emits: ["deleteEvent","changeVisible","changePosition"],
  props:["index","requestId","eventType","phone","position","describe"]
};
</script>
